package com.example.common.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "shop_home_banner")
public class HomeBanner implements Serializable {

	private static final long serialVersionUID = -4426372446859067134L;
	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "name_nvarchar", columnDefinition = "varchar(255)")
	private String name;
	@Column(name = "pos_int", columnDefinition = "int(11) comment '0=顶部,1=中间1,2=中间2'")
	private Integer pos;
	@Column(name = "url_nvarchar", columnDefinition = "varchar(255)")
	private String url;
	@Column(name = "sort_int", columnDefinition = "int(11)")
	private Integer sort;
	@Column(name = "start_time_datetime", columnDefinition = "datetime(3)")
	private Date startTime;
	@Column(name = "end_time_datetime", columnDefinition = "datetime(3)")
	private Date endTime;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
	@Column(name = "disable_bit", columnDefinition = "tinyint(1)")
	private Integer disable;
	@Column(name = "img_nvarchar", columnDefinition = "varchar(255)")
	private String img;
}
